package com.lite.haru.myadapter;

import java.util.Collection;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import android.widget.AbsListView;
import android.widget.TextView;

import com.lite.haru.R;
import com.lite.haru.entity.AlarmInfo;

/**
 * 待处理信息的适配器
 * 
 * @author haru
 *
 */
public class MyAlarmInfoProcessedAdp extends KJAdapter<AlarmInfo> {

	public MyAlarmInfoProcessedAdp(AbsListView view,
			Collection<AlarmInfo> mDatas, int itemLayoutId) {
		super(view, mDatas, itemLayoutId);
	}

	/**
	 * a_phone报警人手机号
	 */

	@Override
	public void convert(AdapterHolder arg0, AlarmInfo arg1, boolean arg2) {

		arg0.setText(R.id.alarm_info, "报警信息：" + arg1.getDisaster());
		arg0.setText(R.id.alarm_level, "报警等级：" + arg1.getGrade());
		arg0.setText(R.id.alarm_statement, "接警编号：" + arg1.getPoliceid() + " "
				+ arg1.getFlag());
		arg0.setText(R.id.alarm_time, arg1.getAccept_alarm_time());
	}
}
